﻿
namespace Rmq.Center
{
    public class HospMessageMsg
    {
        /// <summary>
        /// 通知类型
        /// </summary>
        public string NotificationType { get; set; }
        /// <summary>
        /// 通知信息
        /// </summary>
        public string NotificationInfo { get; set; }
    }

    public class HospMessageProducer : BaseProducer<HospMessageMsg>
    {
        public HospMessageProducer()
            : base(Const.RoutingKeys.HospMessage)
        { }
    }

    public class HospMessageConsumer : BaseConsumer<HospMessageMsg>
    {
        public HospMessageConsumer()
            : base(Const.QueueNames.HospMessage, Const.RoutingKeys.HospMessage)
        { }
    }
}